package com.mini;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;

public interface MiniRowProcessor {
    // 默认的Bean实例转换器
    public static final MiniBeanProcessor DEFAULT_CONVERT = new MiniBeanProcessor();

    // 将结果集转换为Map集合
    Map<String, Object> toMap(ResultSet rs) throws SQLException;
    // 将结果集转换为Bean对象
    <T> T toBean(ResultSet rs, Class<T> type) throws SQLException;
}
